import request from '@/utils/request'

export function listRoom(query) {
  return request({
    url: '/meeting/room/list',
    method: 'get',
    params: query
  })
}

//会议室
export function listdataRoom(query) {
  return request({
    url: '/data/room/list',
    method: 'get',
    params: query
  })
}
//会议室人员列表
export function tsTaskuserlist(query) {
  return request({
    url: '/tsTaskuser/list',
    method: 'get',
    params: query
  })
}
export function listUser() {
  return request({
    url: '/meeting/user/list',
    method: 'get',
  })
}

export function meetingBook(data) {
  return request({
    url: '/backmeeting/book',
    method: 'post',
    data
  })
}

export function bookingbook(data) {
  return request({
    url: '/booking/book',
    method: 'post',
    data
  })
}


export function listMeeting() {
  return request({
    url: '/backmeeting/list',
    method: 'get',
  })
}

export function listBooking(query) {
  return request({
    url: '/booking/list',
    method: 'get',
    params: query
  })
}


export function cancelMeeting(data) {
  return request({
    url: '/backmeeting/cancel',
    method: 'post',
    data
  })
}

export function Meetingupdate(data) {
  return request({
    url: '/backmeeting/update',
    method: 'post',
    data
  })
}

export function MeetingOneWeek() {
  return request({
    url: '/meeting/room/meetingOneWeek',
    method: 'get',
  })
}
export function meetingOrderuserlist(query) {
    return request({
      url: '/meetingOrder/userlist',
      method: 'get',
      params: query
    })
}

export function statusUpdate(data) {
  return request({
    url: '/booking/status',
    method: 'post',
    data
  })
}

export function meetingWeek(query) {
  return request({
    url: '/SqlApi/meetingWeek',
    method: 'get',
    params: query
  })
}




